package Class03_CommonFunctionInterface;

import java.util.Arrays;
import java.util.function.Supplier;

public class L02LambdaSupplier {
    public static void main(String[] args) {
        int[] arr = {1,4,5,67,7};
        System.out.println(getMax(() -> {
            return arr[1];
        }));

    }

    public static int getMax(Supplier<Integer> supplier){
        return supplier.get();
    }
}
